<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="g" uri="/g-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${r"${modeTitle}"}${moduleTitle}</title>
<jsp:include page="../sys/edit_meta.jsp"></jsp:include>
</head>
<body>

<div>
    <div class="panel_header">
        <h1>${r"${modeTitle}"}${moduleTitle} <a href="javascript:parent.mainBack()">返回</a></h1>
    </div>
    <div class="panel_body">
    	<div id="msg"></div>
        <!--表单布局-->
        <form action="${r"${ctx}"}/${pojoInstanceName}/${pojoInstanceName}!${r"${mode}"}.shtml" id="edit_form" method="post">
        	<input name="id" type="hidden" value="${r"${"}${pojoInstanceName}.id ${r"}"}" />
	        <div class="form_wrap">
	        
	        	<#list fieldList as field>
	        	<#if field.isEdit>
				<div class="form_item br">
		            <label>${field.name}：</label>
		            <input name="${pojoInstanceName}.${field.name}" type="text" value="${r"${"}${pojoInstanceName}.${field.name} ${r"}"}" class="input_text {required:true}" />
		        </div>
		        </#if>
				</#list>
		        
		        <div class="form_item br">
		            <label>textarea：</label>
		            <textarea name="${pojoInstanceName}.description" value="" rows="2" cols="40"></textarea>
		    	</div>
		    	
		    	<div class="divider"></div>
		    </div>
		    <!--表单布局-->
		    
		    <div class="form_btn">
		        <ul>
		            <li><input type="submit" value="提交" /></li>
		            <li><input type="button" value="取销" onclick="cancel()"/></li>
		        </ul>
		    </div>
		</form>
        <!--表单布局end-->
    </div>
</div>
</body>
</html>